<?php

/**
 * Class AccountController
 */
class AdminController extends BaseController
{

    /**
     * 广告位录入
     * @return mixed
     */
    public function AddAds()
    {
        return $this->view('admin.add_ads');
    }

    /**
     * 广告位编辑
     * @return mixed
     */
    public function EditAds()
    {
        if (Request::isMethod('POST')) {
            #收集信息
            $paramObj = new stdClass();
            $paramObj->img1        = $this->getParam('img1');          //图片
            $paramObj->img2        = $this->getParam('img2');          //图片
            $paramObj->img3        = $this->getParam('img3');          //图片

            #逻辑操作
               $arr = AdminService::instance()->AdsAdd($paramObj);

            return $this->view('admin.add_ads')->with('arr',$arr);
        }
    }


}





